home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / master / Examples / Visual / VCommon / renderinfo.h < prev    next >
C/C++ Source or Header  |  1994-08-18  |  2KB  |  58 lines

  1. /*
  2.  * MKSoft Development Amiga ToolKit V1.0
  3.  *
  4.  * Copyright (c) 1985,86,87,88,89,90 by MKSoft Development
  5.  *
  6.  */
  7.  
  8. /*
  9.  * This file contains the definition of the rendering information
  10.  * for elements on the screen.  This information is used to generate
  11.  * the correct pen colours for items on the screen...
  12.  *
  13.  * Note, that to call this function you MUST have Intuition and Graphics
  14.  * libraries open...
  15.  */
  16.  
  17. #ifndef MKS_RENDERINFO_H
  18. #define MKS_RENDERINFO_H
  19.  
  20. #include        <exec/types.h>
  21. #include        <graphics/text.h>
  22. #include        <intuition/screens.h>
  23.  
  24. struct RenderInfo
  25. {
  26.         UBYTE           Highlight;      /* Standard Highlight   */
  27.         UBYTE           Shadow;         /* Standard Shadow      */
  28.         UBYTE           TextPen;        /* Requester Text Pen   */
  29.         UBYTE           BackPen;        /* Requester Back Fill  */
  30.  
  31.         UBYTE           WindowTop;      /* Top border of window */
  32.         UBYTE           WindowLeft;     /* Left border          */
  33.         UBYTE           WindowRight;    /* Right border         */
  34.         UBYTE           WindowBottom;   /* Bottom border        */
  35.  
  36.         UBYTE           WindowTitle;    /* Window title size    */      /* includes border */
  37.         UBYTE           junk_pad;
  38.  
  39.         SHORT           ScreenWidth;    /* Width of the screen */
  40.         SHORT           ScreenHeight;   /* Height of the screen */
  41.  
  42.         USHORT          FontSize;       /* Font size for string gadgets */
  43.  
  44. struct  TextFont        *TheFont;       /* Font TextFont */
  45. struct  TextAttr        TextAttr;       /* Font TextAttr */
  46. };
  47.  
  48. /*
  49.  * Calculate a rough brightness hamming value...
  50.  */
  51. #define ColorLevel(rgb) ColourDifference(rgb, 0)
  52.  
  53. VOID CleanUp_RenderInfo(struct RenderInfo *);
  54.  
  55. VOID FillIn_RenderInfo(struct RenderInfo *, struct Screen *);
  56.  
  57. #endif  /* MKS_RENDERINFO_H */
  58.